package com.sinosoft.cnmuseum.dao;


import java.util.List;

import com.sinosoft.cnmuseum.entity.MbXtglJsgl;
import com.sinosoft.commontools.record.Record;
import com.sinosoft.dbtools.operate.single.DBSingleTableActorMgr;


public class MbXtglJsglDao extends BaseDao{

	public MbXtglJsglDao() {
		this.actor = DBSingleTableActorMgr.getDBSingleTableActor("Mb_xtgl_jsgl");
	}
	
	public String getJsZdbh(String jsbm){
		String sql = "select * from Mb_xtgl_jsgl where jsbm='"+jsbm+"'";
		List<Record> list = this.getBySql(sql);
		if(list!=null&&list.size()>0){
			Record js = list.get(0);
			String zdbh = js.getStrValue(MbXtglJsgl.ZDBH);
			return zdbh;
		}
		return "0";
	}

}
